cody - HTMLify profile

cody
4049 Files
501141 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/215 - Lorem Ipsum Generator
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lorem Ipsum generator</title>
<link rel="shortcut icon" href="../30DaysOfJavaScript/assets/favicon.png" type="image/x-icon">
<!-- font awesome cdn link -->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lorem Ipsum generator</title>
<link rel="shortcut icon" href="../30DaysOfJavaScript/assets/favicon.png" type="image/x-icon">
<!-- font awesome cdn link -->
const form = document.querySelector('#form')
const copy = document.querySelector('.copy')
// handling form
form.addEventListener('submit', (e) => {
e.preventDefault()
const size = parseInt(form.input.value);
document.querySelector('.text-section').innerHTML = loremIpsum(size);
const copy = document.querySelector('.copy')
// handling form
form.addEventListener('submit', (e) => {
e.preventDefault()
const size = parseInt(form.input.value);
document.querySelector('.text-section').innerHTML = loremIpsum(size);